import request from '@/utils/request'


export function listStorage(query) {
  return request({
    url: '/iot/storage/list',
    method: 'get',
    params: query
  })
}


export function addStorage(data) {
  return request({
    url: '/iot/storage/add',
    method: 'post',
    data: data
  })
}


export function updateStorage(data) {
  return request({
    url: '/iot/storage/edit',
    method: 'post',
    data: data
  })
}

export function getStorage(id) {
  return request({
    url: '/iot/storage/' + id,
    method: 'get'
  })
}


export function delStorage(ids) {
  return request({
    url: '/iot/storage/remove/' + ids,
    method: 'post'
  })
}
